let response = {
    SendSuccess: (res, data = "") => {
        res.send({
            code: 200,
            data,
            msg: "ok"
        })
    },
    validateError: (res, msg = "缺少必要参数") => {
        res.send({
            code: 40100,
            msg
        })
    },
    otherError: (res, msg) => {
        res.send({
            code: 40200,
            msg
        })
    },
    tokenError: (res) => {
        res.send({
            code: 40300,
            msg: "身份校验失败(无效token)"
        })
    }
}

module.exports = response